from django.db import models

# Create your models here.
# Create your models here.
class Feedback(models.Model):
    MODULE_PLATFORM_CHOICES = (
                               ("iOS", "iOS"),
                               ("Android", "Android")
                               )
    platform = models.CharField(max_length=10, choices=MODULE_PLATFORM_CHOICES, default="All")
    app_version = models.CharField(max_length=20)
    app_user = models.CharField(max_length=20)
    content = models.TextField()
    mobile_no = models.CharField(max_length=20)
    created = models.DateTimeField(auto_now_add=True)
    os_info = models.TextField()
    
    def __unicode__(self):
        return "[%s] %s %s " % (self.pk, self.platform, self.app_version)
    
    class Meta(object):
        ordering = ('-pk',)
